﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace OTPlus.Core.DataTransfer
{
    public class ActivitySelect
    {
        private PaginationRequest m_paginationRequest;

        
        public String AccessToken { get; set; }
        public String ActivityID { get; set; }

        public PaginationRequest PaginationRequest { 
            get 
            {
                //if we're including the top comment in the fulfillment, we're going to step in here and drop the page one size down
                //this.m_paginationRequest.ItemsPerPage = this.m_paginationRequest.ItemsPerPage - 1;

                return this.m_paginationRequest;
                
            }

            set { this.m_paginationRequest = value; }
        }


        
        /// <summary>
        /// Determines whether or not the the header comment should be included in the resultant response. 
        /// </summary>
        internal Boolean IncludeActivityCommentInFulfillment
        { 
            get {

                if (PaginationRequest.PaginationToken == "0")
                { return true; }
                else
                { return false; }
        
                }
        }
    }
}